package pshycomanagement

class SecuritytController {
def beforeInterceptor = [action:this.&auth]
  def index() { 
        redirect(action:list)
    }
 
    def scaffold = Security
def auth() {
        if(!session.user) {
            redirect(controller:"Security", action:"login")
            return false
        }
    }
    
}